import request from '@/utils/request.js'
import { setSignData } from "@/utils/modal.js"

// 发送短信
export function sendSms(data) {
	let newData = setSignData('obtainUserSignSmsCode', data)
	return request.request({
		type: "post",
		data: newData
	})
}
export function getSignUrl(data) {
	let newData = setSignData('generateUserSignUrl', data)
	return request.request({
		type: "post",
		data: newData
	})
}
// 获取协议内容
export function getSignAgreement(data) {
	let newData = setSignData('obtainUserSignAgreement', data)
	return request.request({
		type: "post",
		data: newData
	})
}
// 用户签约
export function doUserSign(data) {
	let newData = setSignData('userSign', data)
	return request.request({
		type: "post",
		data: newData
	})
}

